<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    function checkForm(){
        var username = document.getElementById("username").value;
        if(username == null || username == ""){
            alert("用户名不能为空");
            return false;
        }
        return true;
    }
    $(document).ready(function(){
        $("#SystemManager").addClass("active");
    });
</script>
<div class="data_list">
    <div class="data_list_title">
        修改系统管理员
    </div>
    <form action="userServlet.action?action=reUpdate&id=${requestScope.id}" method="post" onsubmit="return checkForm()">
        <div class="data_form" >
            <table align="center">
                <tr>
                    <td><font color="red">*</font>&nbsp;用户名：</td>
                    <td><input type="text" id="username" value="${requestScope.username}" name="username" style="margin-top:5px;height:30px;" /></td>
                </tr>
                <tr>
                    <td><font color="red">*</font>&nbsp;密码：</td>
                    <td><input type="text" id="password" value="${requestScope.password}" name="password" style="margin-top:5px;height:30px;" /></td>
                </tr>
            </table>
            <div align="center">
                <input type="submit" class="btn btn-primary" value="保存"/>
                &nbsp;<button class="btn btn-primary" type="button" onclick="javascript:history.back()">返回</button>
            </div>
            <div align="center">
                <font id="error" color="red">${requestScope.error}</font>
            </div>
        </div>
    </form>
</div>